﻿@model IEnumerable<PessModel.RegistrationOption>

@{
    ViewBag.Title = "Registration Options";
}

<h2>Registration Options </h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
                      <table id="fileList" class="oddTable">
                          <tr>
                              <th>#</th>
                              <th>
                                  @Html.DisplayNameFor(model => model.Name)
                              </th>
                              <th>
                                  @Html.DisplayNameFor(model => model.EarlyFeeRMB)
                              </th>
                              <th>
                                  @Html.DisplayNameFor(model => model.RegularFeeRMB)
                              </th>
                              <th>
                                  @Html.DisplayNameFor(model => model.EarlyFeeUSD)
                              </th>
                              <th>
                                  @Html.DisplayNameFor(model => model.RegularFeeUSD)
                              </th>
                              <th>
                                  @Html.DisplayNameFor(model => model.EarlyDate)
                              </th>
                              <th>
                                  @Html.DisplayNameFor(model => model.Type)
                              </th>
                              <th></th>
                          </tr>

                          @foreach (var item in Model)
                          {
                              <tr>
                                  <td>@item.Id</td>
                                  <td>
                                      @Html.DisplayFor(modelItem => item.Name)
                                  </td>
                                  <td>
                                      ¥@item.EarlyFeeRMB
                                  </td>
                                  <td>
                                      ¥@item.RegularFeeRMB
                                  </td>
                                  <td>
                                     $@item.EarlyFeeUSD
                                  </td>
                                  <td>
                                      $@item.RegularFeeUSD
                                  </td>
                                  <td>
                                      @item.EarlyDate.ToShortDateString()
                                  </td>
                                  <td>
                                      @item.Type
                                  </td>
                                  <td>
                                      @Html.ActionLink("Edit", "Edit", new { id = item.Id }) |
                                      @Html.ActionLink("Details", "Details", new { id = item.Id }) |
                                      @Html.ActionLink("Delete", "Delete", new { id = item.Id })
                                  </td>
                              </tr>
                          }

                      </table>
